#include "Gate.h"
#include "FileHelper.h"

bool Gate::init() {
	if (!Node::init()) {
		return false;
	}
	this->gateId = 1;
	this->cur_floor = 1;
	this->finish_floor = 1;
	this->max_floor = 10;
	this->cur_depth = 100;
	this->max_depth = 1200;
	this->floor_func = new std::vector<int>();
	this->floor_func->push_back(12);
	this->floor_func->push_back(5);
	this->floor_func->push_back(3);
	this->floor_func->push_back(10);
	FileHelper::SaveGate("./script/Gate1.lua", 1,this);

	FileHelper::GetGate("./script/Gate1.lua", 1,this);
	log("%d",this->max_floor);
	log("%d", floor_func->at(2));

	return true;
}

